package com.cat.visitor;

/**
 * @author cat
 * @version 2025/5/28 14:48
 * @description
 * @since JDK17
 */

public class Client {
    public static void main(String[] args) {
        Home home = new Home();
        home.add(new Dog());
        home.add(new Cat());

        Owner owner = new Owner();
        home.action(owner);

        System.out.println("========================");

        Someone someone = new Someone();
        home.action(someone);
    }
}
